package com.dx.common.table.ppt;

/**
 * AbstractRet_recipe_bodyId entity provides the base persistence definition of
 * the Ret_recipe_bodyId entity. @author MyEclipse Persistence Tools
 */

public class Ret_recipe_bodyId implements java.io.Serializable {

	// Fields

	private String recipe_body_id;
	private Integer body_seq_id;

	// Constructors

	/** default constructor */
	public Ret_recipe_bodyId() {
	}

	/** full constructor */
	public Ret_recipe_bodyId(String recipe_body_id, Integer body_seq_id) {
		this.recipe_body_id = recipe_body_id;
		this.body_seq_id = body_seq_id;
	}

	// Property accessors

	public String getRecipe_body_id() {
		return this.recipe_body_id;
	}

	public void setRecipe_body_id(String recipe_body_id) {
		this.recipe_body_id = recipe_body_id;
	}

	public Integer getBody_seq_id() {
		return this.body_seq_id;
	}

	public void setBody_seq_id(Integer body_seq_id) {
		this.body_seq_id = body_seq_id;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Ret_recipe_bodyId))
			return false;
		Ret_recipe_bodyId castOther = (Ret_recipe_bodyId) other;

		return ((this.getRecipe_body_id() == castOther.getRecipe_body_id()) || (this
				.getRecipe_body_id() != null
				&& castOther.getRecipe_body_id() != null && this
				.getRecipe_body_id().equals(castOther.getRecipe_body_id())))
				&& ((this.getBody_seq_id() == castOther.getBody_seq_id()) || (this
						.getBody_seq_id() != null
						&& castOther.getBody_seq_id() != null && this
						.getBody_seq_id().equals(castOther.getBody_seq_id())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getRecipe_body_id() == null ? 0 : this.getRecipe_body_id()
						.hashCode());
		result = 37
				* result
				+ (getBody_seq_id() == null ? 0 : this.getBody_seq_id()
						.hashCode());
		return result;
	}

}